package com.sjm.bookshop.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Book {
    private int bookId;
    private String bookname;
    private String author;
    private String presshouse;
    private int type;
    private String discription;
    private int ison;
    private int price;
    private int stock;
    private String bookpic;
    private int sales;
    private int isrecommend;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date addtime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updatetime;
}
